package com.shopping.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class ProductAspect {
    @Pointcut("execution(public int com.shopping.service.impl.ProductService.addProduct())")
    public void addProduct(){}
    @Pointcut("execution(public int com.shopping.service.impl.ProductService.editProduct())")
    public void editProduct(){}
    @Pointcut("execution(public int com.shopping.service.impl.ProductService.deleteProduct())")
    public void deleteProduct(){}
    @Pointcut("execution(public int com.shopping.service.impl.ProductService.selectProduct())")
    public void  selectProduct(){}
    @Pointcut("execution(public int com.shopping.service.impl.ProductService.getProductById())")
    public void getProductById(){}
}
